var t = require;
var e = module;
var o = exports;
Object.defineProperty(o, "__esModule", { value: !0 }), (o.Fangchenmis = void 0);
var n = t("Sounds"),
    r = t("Counter"),
    a = t("Platforms"),
    i = require("./强制引导退出"),
    s = require("./防沉迷"),
    c = (function() {
        function t() {
            t.instance = this;
        }
        return (
            (t.prototype.startCounter1 = function(t, e) {
                var o = this;
                this.counter1 && (this.counter1.clear(), (this.counter1 = null)),
                    (this.counter1 = new r.default()),
                    this.counter1.init(t, function(t) {
                        o.txt && (o.txt.string = a.default.formatTime(t, !0));
                    }),
                    this.counter1.start(e);
            }),
            (t.prototype.showPopup1 = function(t) {
                var e = a.default.popups.show(s.防沉迷);
                (e.txt.string = t),
                e.ok.on(cc.Node.EventType.TOUCH_END, function() {
                    n.Sounds.playFX("点击"), e.hide();
                });
            }),
            (t.prototype.startCounter2 = function(t, e) {
                var o = this;
                (this.counter2 = new r.default()),
                this.counter2.init(t, function(t) {
                        o.txt && (o.txt.string = a.default.formatTime(t, !0));
                    }),
                    this.counter2.start(e);
            }),
            (t.prototype.showPopup2 = function(t) {
                a.default.popups.show(i.强制引导退出).txt.string = t;
            }),
            t
        );
    })();
o.Fangchenmis = c;